package com.horsen.service.aliyun.utils;

import com.aliyuncs.DefaultAcsClient;
import com.aliyuncs.profile.DefaultProfile;

/**
 * 阿里云Vod sdk工具类
 *
 * @author Horsen
 */
public class AliyunVodSdkUtils {
    /**
     * 生成默认Acs客户端
     *
     * @param accessKeyId     keyId
     * @param accessKeySecret keySecret
     * @return Acs客户端
     */
    public static DefaultAcsClient initVodClient(String accessKeyId, String accessKeySecret) {
        // 点播服务接入区域
        String regionId = "cn-shanghai";
        DefaultProfile profile = DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret);
        return new DefaultAcsClient(profile);
    }
}
